﻿using System;
using System.Runtime.Serialization;

namespace LuxDiner.Model.Products
{
    [DataContract]
    public class ProductUnitModel:MBase
    {
        [Model(ConvertType = AttributeType.IgnoreUpdate)]
        [DataMember]
        public int ID { get; set; }
        [Model]
        [DataMember]
        public int ProductID { get; set; }
        [Model]
        [DataMember]
        public string UnitName { get; set; }
        [Model]
        [DataMember]
        public int Rate { get; set; }
        [Model]
        [DataMember]
        public decimal CostPrice { get; set; }
        [Model]
        [DataMember]
        public decimal SellPrice { get; set; }
        [Model]
        [DataMember]
        public int OrderIndex { get; set; }

        #region Help
        [DataMember]
        public string ProductName { get; set; }
        #endregion
    }

    [DataContract]
    public class ProductUnitCollection : ModelCollectionBase<ProductUnitModel> { }
}
